home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / inn-faq / part2 < prev    next >
Encoding:
Internet Message Format  |  1993-06-04  |  49.2 KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!darwin.sura.net!spool.mu.edu!olivea!uunet!news.mentorg.com!sdl!not-for-mail
  2. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  3. Newsgroups: news.software.nntp,news.software.b,news.answers
  4. Subject: FAQ: The INN Tutorial (plus Debugging FAQ) (Part 2 of 3)
  5. Supersedes: <inn-faq-2-737870420@Warren.MENTORG.COM>
  6. Followup-To: news.software.nntp
  7. Date: 5 Jun 1993 04:00:23 -0000
  8. Organization: Mentor Graphics - IC Group, Warren, NJ, USA
  9. Lines: 1284
  10. Approved: news-answers-request@MIT.Edu
  11. Distribution: world
  12. Expires: 06/20/93
  13. Message-ID: <inn-faq-2-739252815@Warren.MENTORG.COM>
  14. References: <inn-faq-1-739252815@Warren.MENTORG.COM>
  15. Reply-To: Tom_Limoncelli@Warren.MENTORG.COM (Tom Limoncelli)
  16. NNTP-Posting-Host: sdl.warren.mentorg.com
  17. Summary: Part 1: Common questions about INN itself, and some advice when compiling it and installing it.  Part 2: This assumes that you've successfully compiled the software.  This is a tutorial that takes you through configuration and setting up feeds.  It ends with common questions about INN configuration.  Part 3: Norman's quick guide to getting started (assumes SunOS) and other things)
  18. Xref: senator-bedfellow.mit.edu news.software.nntp:4667 news.software.b:14267 news.answers:9076
  19.  
  20. Posted-By: auto-faq 2.4
  21. Archive-name: inn-faq/part2
  22.  
  23. Last Changed: $Id: FAQ-inn.2,v 1.27 1993/04/30 19:17:23 tal Exp $
  24.  
  25.                       The INN CONFIGURATION FAQ
  26.                       -------------------------
  27.        by Tom Limoncelli, with additions by many, many others.
  28.  
  29. (Copyright 1992 Tom Limoncelli, this may be redistributed in whole and
  30. only on electronic networks.  Otherwise, contact the author.
  31. Publishers and movie agents should contact me as soon as possible.  I'd
  32. prefer it if Tom Cruise plays me in the movie, but if he isn't
  33. available we can negotiate.)
  34.  
  35. A special thanks goes to all the people that have helped put this
  36. together.  I've tried to give credit where credit is due.  Additions
  37. and corrections should be sent to tal@Warren.MENTORG.COM.  DO NOT
  38. send requests for help to Tom.  Post them to news.software.nntp.
  39.  
  40.  
  41.                           Table Of Contents:
  42.                           ------------------
  43.  
  44. GENERAL OVERVIEW OF INN
  45.     Should I read the install.ms file in its entirety before
  46.         reading this document?
  47.     How does it all fit together? (LONG)
  48.     Terminology used in the rest of this document.
  49.     What should I monitor as I debug INN problems.
  50. CONFIGURATION DEBUGGING GUIDE
  51.     Connecting to a TCP/IP server.
  52.     My innd won't start!
  53.     Make sure that "feeders" can connect.
  54.     Make sure that "readers" can connect.
  55.     Make sure that clients can post.
  56.     "client" doesn't have the software needed to post.
  57.     Debugging the "newsfeeds" file.
  58.     The ME line in the newsfeeds file.
  59.     Cookbook example of an outgoing NNTP feed:
  60.     Cookbook example of an outgoing UUCP feed:
  61.     Testing an outgoing feed (your "newsfeeds" configuration).
  62.     Cookbook example setting up NOV ("overchan").
  63. STARTUP PROBLEMS AND SYSLOG MESSAGES
  64.     syslog message: ME internal no to group
  65.     syslog message: ME cant sendto CCreader bytes 4 No such file or directory.
  66.     syslog message: ME internal no control and/or junk group
  67.     syslog message: ME bad_newsfeeds no feeding sites
  68.     Why do all these "readclose" messages show up in my syslog?
  69. MISC QUESTIONS
  70.     Can I edit my configuration files where they are, or do I have
  71.         to edit them in $INN/site ?
  72.     syslog message:  ME cant nonblock 15 Operation not supported.
  73.     Suddenly my active and history files are owned by root!
  74.     What can I do if I can't purchase the O'Reiley And Associates book
  75.         on Managing Usenet?
  76.     Getting an active file.
  77.     How do I use nntplink with INN?
  78.     How do I use newsgate with INN?
  79.     Other cron jobs.
  80.     After a crash.
  81.     Debugging someone that is feeding you.
  82.     Feeds suddenly can't connect anymore!
  83.     How does the "ME" line interact with the other lines?
  84.     Why doesn't nntpget work?
  85.     More about the "to.*" groups.
  86.     I'm getting groups sent to me that I don't want.
  87.     When my feeder connects, I get articles but they don't take
  88.         what's waiting for them.
  89.     Directories are being created with wrong permissions.
  90.     Can I split my news spool across partitions?
  91.  
  92.  
  93. NOTE:  Read this document through from beginning to end after
  94. you first compile INN.  Later, use it for reference if problems
  95. come up.
  96.  
  97. ======================================================================
  98.  
  99.                        GENERAL OVERVIEW OF INN
  100.  
  101. ======================================================================
  102.  
  103.  
  104. ------------------------------
  105.  
  106. Subject: Should I read the install.ms file in its entirety before reading this document?
  107.  
  108. YES!  Install.ms tells you how to compile and install the software.
  109. This document walks you through debugging the *configuration* of the
  110. software once it is installed.
  111.  
  112. This document takes you from where install.ms leaves off, gives you a
  113. quick overview of how all the pieces fit together, and then takes you
  114. through specific debugging tasks.
  115.  
  116. Debugging INN problems is often difficult because one needs to be an
  117. experienced netnews person to do it well.  You can only get experience
  118. by having a properly running system.  This is a catch-22.  This
  119. tutorial attempts to take you through the basics.  The rest you'll
  120. figure out.
  121.  
  122. Newsgroups you should know exist:
  123. news.software.nntp  -- INN questions go here.
  124. news.software.b     -- Discussions about any of the many software
  125.     packages that support the "B news" format (i.e. INN, C news,
  126.     ANU-NEWS, etc.)
  127.  
  128. This document also takes you through the process of verifying that your
  129. system is properly configured.  When you are done, you should:
  130.  
  131. 1.  be sure that when feeders connect they are treated as feeders.
  132.  
  133. 2.  be sure that when clients connect they are treated as clients.
  134.  
  135. 3.  be sure that posting works.
  136.  
  137. 4.  be sure that your out-bound feeds are properly configured.
  138.  
  139.  
  140. ------------------------------
  141.  
  142. Subject: How does it all fit together? (LONG)
  143.  
  144. Here is a fantastic overview of the workings of INN.
  145.  
  146. From: Ken Hornstein <kenh@leps5.phys.psu.edu>
  147.  
  148. I discovered that the biggest problem I had with INN was understanding how
  149. everything fits together (since I had no experience with B or C news).
  150. Here's a (hopefully) simple description of how everything fits
  151. together:
  152.  
  153. After running rc.news (as "root"), you should have the "innd" daemon
  154. running ("ps" will show the process to be owned by "news").  This is
  155. the Master Daemon.  It handles incoming connections, stores the
  156. articles on your disk, but does _not_ send any articles out itself.  It
  157. directs other programs to do that.  Exactly where articles are sent and
  158. how they are sent is determined by the "newsfeeds" file.  Setting up
  159. your newsfeeds file will be the hardest part of configuring INN.  Here
  160. are some example entries from my newsfeeds file:
  161.  
  162. ra/ra.nrl.navy.mil\
  163.         :*,!psu.*/!psu\
  164.         :Tf,Wnm:
  165.  
  166. Looks complicated?  It isn't.  Here's what it means:
  167.  
  168. "ra" is the name of the feed.  "/ra.nrl.navy.mil" is an alias for ra.
  169. This is important because INN uses the "Path" header to insure the
  170. articles are not sent to sites where they have already been.  Thus, any
  171. article that has "ra" or "ra.nrl.navy.mil" in the Path header will NOT
  172. be sent to this site.
  173.  
  174. The second line tells what articles will be sent to this site.
  175. "*,!psu.*" means that all articles that are not in psu.* will be sent
  176. to ra.  The details of the pattern matching is found in the wildmat(3)
  177. man page.  The "/!psu" means that articles with a "Distribution" header
  178. of psu will also not be sent to ra.
  179.  
  180. The last field specifies exactly what _kind_ of feeds.  "Tf" means this
  181. is a file feed.  Unless you have unusual requirements, all of your
  182. feeds will be file feeds.  "Wnm" means that the relative path name and
  183. the Message-ID of the article will be written to this file.  By
  184. default, this file is called the same name as your feed file, and is in
  185. your out.going directory.  So on my system, every article destined to
  186. ra will have its filename and Message-ID written to the file
  187. "/var/spool/news/out.going/ra".
  188.  
  189. So how do the articles actually GET to ra?  You run a program that
  190. reads the feeds file and transmits the article.  Two such programs are
  191. included with INN -- "send-nntp" and "nntpsend".  My personal
  192. preference is for nntpsend.  If you are going to use nntpsend, you will
  193. need to add a similar line to your nntpsend.ctl file:
  194.  
  195. ra:ra.nrl.navy.mil
  196.  
  197. This tells nntpsend that articles in the feed file "ra" should be sent
  198. to the site "ra.nrl.navy.mil".  I run nntpsend out of cron every 10
  199. minutes with this line (in /usr/lib/crontab):
  200.  
  201. 0,10,20,30,40,50 * * * * /bin/su news -c '/usr/local/news/bin/nntpsend'
  202.  
  203. This is under Ultrix.  A sane cron would let you specify the userid to
  204. run programs under.
  205.  
  206. UUCP feeds work similarly and are described in a different section.
  207.  
  208. As each article comes in (note that hosts feeding you _must_ be listed
  209. in the hosts.nntp file), innd will examine it and distribute to your
  210. listed feeds based on the above-described selection criteria.
  211.  
  212. One last important thing to do is to make sure your articles get
  213. expired.  This is done from the "news.daily" script.  The "expire.ctl"
  214. file describes how long you want each article to last.  Here are some
  215. sample lines from my expire.ctl:
  216.  
  217. /remember/:14
  218.  
  219. This line tells expire to keep history entries for articles 14 days
  220. after they have been deleted.
  221.  
  222. *:A:1:7:21
  223.  
  224. This is the default line.  This says that by default, an article is
  225. kept a minimum of one day, the default expiration time is 7 days (this
  226. applies if there is no "Expires" header), and the very maximum that the
  227. article is kept is 21 days.
  228.  
  229. psu.*:A:1:14:28
  230.  
  231. This line applies to groups only in Penn State.  By default, those
  232. articles will last 14 days, 28 days at the most.
  233.  
  234. Note that lines in expire.ctl should have the most general entries
  235. first, with the most specific entries last.
  236.  
  237.  
  238. ------------------------------
  239.  
  240. Subject: Terminology used in the rest of this document.
  241.  
  242. We will pretend that your machine is named "nntphost" or
  243. "nntphost.do.main" and that there is a client named "client" or
  244. "client.do.main".
  245.  
  246. Some machines connect to you to try to feed you new articles.  We'll
  247. call these machines "feeders".  Some machines try to connect to you to
  248. read and/or post articles.  We'll call these machines "readers".
  249.  
  250.  
  251. ------------------------------
  252.  
  253. Subject: What should I monitor as I debug INN problems.
  254.  
  255. 1.  run "tail -f /var/adm/messages" to see if any syslog messages are
  256. being generated.
  257.  
  258. 2.  run "tail -f /var/log/news/news.err" to see if any fatal errors
  259. happen. 
  260.  
  261. 3.  Check for incoming email constantly (especially when trying to post
  262. from "nn").
  263.  
  264. ======================================================================
  265.  
  266.                     CONFIGURATION DEBUGGING GUIDE
  267.  
  268. ======================================================================
  269.  
  270.  
  271. ------------------------------
  272.  
  273. Subject: Connecting to a TCP/IP server.
  274.  
  275. You know that "telnet"'ing to a machine lets you log into it.  Many
  276. TCP/IP services allow you to "telnet" into their port and talk directly
  277. to them.  Try "telnet nntphost 21".  This means log into port #21 (the
  278. "ftp" port) instead of the usual remote login port.
  279.  
  280. Once you are in, you'll get no prompt.  Type "help" and press RETURN.
  281. You should get a list of commands.  If you know what the commands are,
  282. you can talk to this server.  Type "quit" and press RETURN to get out.
  283.  
  284. After every command you should get some kind of status message.  Each
  285. line will begin with a number.  Each message has a unique number.
  286. Errors are defined as anything that starts with a number >= 400.
  287.  
  288. SMTP (mail) and NNTP (netnews) work the same way.  Telnet into their
  289. port and issue commands and data.  "quit" always gets you out.
  290.  
  291. We'll use this to debug INN configurations by "telnet"'ing into the
  292. innd server and seeing the raw error messages it gives us.
  293.  
  294. Try "telnet"'ing into the NNTP port (#119) of a working NNTP server to
  295. see what it's like.
  296.  
  297.  
  298. ------------------------------
  299.  
  300. Subject: My innd won't start!
  301.  
  302. Keep a "tail -f /var/adm/messages" running.  INN reports most errors
  303. via syslog.  The syslog messages usually explain what is wrong.
  304. Elsewhere in this document are details about some of the less obvious
  305. syslog messages.
  306.  
  307. Chances are, INN is starting, finding a misconfigured "ME" line in the
  308. newsfeeds file, and exiting.  You might want to read the section on
  309. configuring your "newsfeeds" file first.
  310.  
  311. Rich Salz says a common reason is that you ran makehistory but didn't
  312. rename the DBZ files.
  313.  
  314. Izar Tarandach <izar@cs.huji.ac.il> suggests that another common
  315. mistake is that innd wasn't being started by the correct uid.  innd
  316. (and therefore rc.news) must be started from "root" (not "news").  It
  317. immediately turns itself in user "news" once certain tasks are
  318. completed.
  319.  
  320.  
  321. ------------------------------
  322.  
  323. Subject: Make sure that "feeders" can connect.
  324.  
  325. "feeders" are listed in hosts.nntp.  "readers" are listed in
  326. nnrp.access.  This section deals with "feeders" and hosts.nntp.
  327.  
  328. When a machine connects to the NNTP port of nntphost, it connects to
  329. the innd process.  innd knows the internet address of the machine that
  330. is making this connection, and sees if it matches the internet
  331. addresses many of the machines listed in the hosts.nntp file.
  332.  
  333. If the machine is not listed in hosts.nntp, it is assumed that this
  334. machine is not a "feeder" and forks off a nnrpd to handle this
  335. connection as a "reader".  If you didn't know that, you didn't read
  336. enough of the INN installation documentation.  Go back and read it
  337. now.
  338.  
  339. Read the man page hosts.nntp to get a complete understanding of what's
  340. going on.  nnrpd uses its own authentication scheme, which is
  341. described in the next section.
  342.  
  343. Since I know you didn't read that man page, I'll give you one more
  344. chance to read them now.
  345.  
  346. Let's configure hosts.nntp.  Just enter the names of all the machines
  347. that feed you:
  348.  
  349. feeder1.do.main:
  350. feeder2.do.main:
  351.  
  352. I don't use passwords yet.  If you do, add them after the ":".
  353.  
  354. Now let's test to see if the feeder can connect properly.
  355.  
  356. Log into to the feeder and "telnet nntphost 119".
  357.  
  358. If you can't log into a feeder, configure your own machine as a feeder
  359. (i.e. feeder to itself) for testing purposes.  Once you can see that
  360. INN is treating that machine as a feeder you can replace the machine's
  361. name with the name of a real feed.
  362.  
  363. If you are given an error message and booted out, check the error
  364. message to see what's wrong.  Maybe the machine is running maintenance
  365. at the time and you have to try again later.  Maybe the machine doesn't
  366. recognize you at all and you have to edit "hosts.nntp" (and don't
  367. forget the "ctlinnd reload" command!).
  368.  
  369. If your "history" file or other files have the wrong ownership or
  370. protections INN will mention the offending file in the error message.
  371. Another common mistake is that people try to use wildcards in
  372. hosts.nntp (which is not supported).  Remember, there are very few
  373. machines that you consider to be "feeders", so you don't want to use a
  374. wildcard.
  375.  
  376. To test a "feeder":  If "feeder1" can send an "ihave" command and get a
  377. "335" as a response, you know that "nntphost" is permitting "feeder1"
  378. to transfer news as a "feeder".  "ihave" requires an operand.  I
  379. usually type "ihave <1@test>" ("<1@test>" is a Message-ID that I know
  380. doesn't exist) and press RETURN.  If I get "500 What?" I know that innd
  381. assumed that I'm a "reader" (so I have to edit my "hosts.nntp" file and
  382. add this client).  If I get "335" and then a blank prompt, then INN is
  383. expecting to be fed an article.  I usually just "^]" (control-]) and
  384. "quit" out; I know that it was willing to accept the article.  If I get
  385. some other error message, it usually gives me enough information to
  386. debug the problem.
  387.  
  388.  
  389. ------------------------------
  390.  
  391. Subject: Make sure that "readers" can connect.
  392.  
  393. As I wrote before, if a connection comes from a machine that isn't
  394. listed in the hosts.nntp file, it is assumed to be a "reader".  A
  395. "feeder" can also issue the "mode reader" command to become a
  396. "reader".  If you have "telnet"'ed in as a "feeder", try issuing this
  397. command.
  398.  
  399. Note: If a site is going to feed *and* read, you'll have to link
  400. readers with innd's client library. The reason for this is that the
  401. clients must tell innd that they want to read using the "mode reader"
  402. command.  The library does that automagically.  It is rare that you
  403. have a machine that is a reader and a feeder (since people will want to
  404. read on their local machine, not yours.)  News readers are now
  405. being packaged as "INN ready" so this will be less and less of a
  406. problem.
  407.  
  408. Once the connection has been handed off to nnrpd, nnrpd checks to make
  409. sure you are authorized.  It does that by reading the nnrp.access
  410. file.
  411.  
  412. There is a problem with what you enter in that file.  Namely, I might
  413. call the client machine "client", but that doesn't matter.  What
  414. matters is what "nntphost" thinks "client" is called.  Maybe "nntphost"
  415. thinks its name is "client.do.main" or even "137.202.177.3".  It
  416. doesn't matter what *you* call "client", permissions in the nnrp.access
  417. file have to be specified based on what "nntphost" calls "client".
  418. Technically, nntpd uses gethostbyaddr() to reverse-lookup the name.
  419. gethostbyaddr() uses DNS or, if you are on a brain-dead Sun running
  420. Sun's brain-dead NIS/DNS hack, it uses NIS, or DNS, or whatever the
  421. hell Sun was thinking when they created that cruft.
  422.  
  423. To find out what "nntphost" thinks your machine is called, do the
  424. following:  log into "client".  From "client" telnet to "nntphost" and
  425. log in.  On "nntphost" give the "finger" command with no arguments.
  426. The last column is what "nntphost" thinks your machine is called.  If
  427. you don't have an account on both machines things are more difficult,
  428. consult your NIS or DNS expert to tell you what the answer should be.
  429.  
  430. So, with this knowledge and a copy of the man page, edit nnrp.access
  431. and add "nntphost"'s name for "client" to the file.  Only nnrp.access
  432. can have wildcards (for example, "*.sjc.mentorg.com").  You'll want to
  433. include wildcards for all the domains that should be allowed to
  434. read/post.
  435.  
  436. Here are some decent examples from my nnrp.access file:
  437.  
  438. -------------------------------------- Tom's nnrp.access file START
  439. ## Default is no access, no way to authentication, and no groups.
  440. *:: -no- : -no- :!*
  441. *.mentorg.com:Read:::*
  442. *.mentor.com:Read:::*
  443. *.warren.mentorg.com:Read Post:::*
  444. # local (NIS) machines should match this:
  445. *[^.]*:Read Post:::*
  446. -------------------------------------- Tom's nnrp.access file END
  447.  
  448. The second field of "nnrp.access" is case sensitive.  "read post" does
  449. not mean the same as "Read Post".  If you know this already it's
  450. because you read the man page.
  451.  
  452. It is difficult to write a wildcard for "all machine in your NIS/YP
  453. domain" since they aren't FQDN's.  A wildmat expression for "all
  454. clients without FQDN's" is "*[^.]*".  In other words, "all hosts
  455. without periods in their name."  (See above example.)  If you are using
  456. DNS without NIS, a hacked libresolv, resolv+ or other tricks then you
  457. might not need this line.  Or, those tricks might be the reason why you
  458. need this line.  Isn't networking fun?
  459.  
  460. After you change "nnrp.access" you don't have do "ctlinnd reload" since
  461. the file is read by each nnrpd as they start up.
  462.  
  463. Now "nntphost" should be letting "client" read.  Let's test this out:
  464.  
  465. Log into to the reader and "telnet nntphost 119".
  466.  
  467. To test a "reader":  Give the "mode reader" command and see how it
  468. likes it.  If it doesn't give an error, then nnrp.access is letting you
  469. through.  To read an article (or just get the header) type "head
  470. <2@test>" and press RETURN.  Again, "<2@test>" is a message-id that I
  471. know doesn't exist.  If you are allowed to read at all, it will tell
  472. you that it can't find that article.  You might try the command with an
  473. message-id that you know exists.
  474.  
  475. You are done with that phase.  Now you should test to see if posting is
  476. permitted.  Skip ahead to the next section.
  477.  
  478. If "mode reader" gives an error (and rudely disconnects you) then you
  479. have a typo in nnrp.access OR you didn't issue the "ctlinnd reload"
  480. command correctly (or at all) OR nntphost thinks that "client" is
  481. called yet something else OR innd can't exec nnrpd for one reason or
  482. another -- see the syslog output or the innd.err log file.  Go to the
  483. beginning of this section and start over.
  484.  
  485. Note: Some telnet implementations are Real Stupid and disconnect you
  486. before showing the error message.
  487.  
  488. You can also run nnrpd by hand if you have
  489.     stdin:Read Post:::*
  490. in your nnrp.access file.  Just run nnrpd and type interactively.  This
  491. is useful for making sure it's compiled right.
  492.  
  493.  
  494. ------------------------------
  495.  
  496. Subject: Make sure that clients can post.
  497.  
  498. The "inews" command (usually in /usr/local/bin) takes a post from a
  499. user, adds any missing headers, appends the first 4 lines of
  500. ~/.signature (if it exists), and possibly replaces any headers that are
  501. seriously forged.  "inews" will also reject a message if you really
  502. botch it.  "inews -h" expects a post on stdin beginning with headers,
  503. then a blank line, then the body.  "inews -h -D" doesn't post the
  504. message, but outputs what it would have posted.  The minimum headers
  505. one can feed is "Newsgroups:" (which is plural) and "Subject:" (which
  506. is singular).
  507.  
  508. By the way, after a header there is exactly one colon then exactly one
  509. space.  The space is a space, not a tab.  Also, the list of newsgroups
  510. on the "Newsgroups:" line is a comma separated list, with no spaces.
  511. There are no spaces before the colon.  If there is nothing after the
  512. colon or if there is only whitespace after the colon then that header
  513. will be removed by "inews".  Sites that don't remove such "empty"
  514. headers have broken software.  Get it?  Got it?  Good.
  515.  
  516. Here's the test message I constantly use:
  517. ------------------------ cut here 8<
  518. inews -h -D
  519. Newsgroups: foo.test
  520. Subject: test of inn posting
  521.  
  522. this is a test
  523. ------------------------ cut here 8<
  524.  
  525. Exciting huh?
  526.  
  527. You might also use the 'feedone' program in the frontends directory.
  528. Do "cd $inn/frontends ; make feedone" to get it built.  To run it, do
  529.  
  530.        feedone -t -r </tmp/inews.output
  531.  
  532. This will (-t) trace all I/O with the server and (-r) use a random
  533. message-id each time.  If you want to test posting from a newsreading
  534. host (i.e., one that connects to nnrpd and uses the POST command) use
  535. the -p flag.
  536.  
  537. If inews was able to get to the /usr/lib/news/inn.conf file (for
  538. defaults) you should get a nice post on your screen.  If you don't,
  539. here are my suggestions:
  540.  
  541. 1 -- You have an old inews from C news or B news laying around
  542. 2 -- inews will give you an error message saying what's wrong.
  543.  
  544. You might want to look around the usual places to make sure that there
  545. are no old versions of "relaynews" or "inews".  People trying to use
  546. the "inews" from C news will get a message about "can't open
  547. redirection" or similar.  Make sure they are running the programs
  548. included with INN.  There is something called "mini-inews" which should
  549. just take a post and send it to the nntp server.  Delete that and
  550. replace it with INN's inews.  INN's inews is mini-inews and regular
  551. inews, it is the ying and then yang of inewses.  It is the one inews to
  552. end all inewses and all others are false idols.
  553.  
  554. Note:  False idol worshipper and heathen David Myers <dem@meaddata.com>
  555. reports that mini-inews works fine.  He stays with mini-inews...
  556. "because INN inews needs to access not only inn.conf, but moderators,
  557. too.  Installing and maintaining these files in a ~1000 client,
  558. multiple administrative domain setup like ours is too much of a pain.
  559. Most (all?) of the work done by INN inews is done by in.nnrpd during
  560. posting, anyway."
  561.  
  562. INN's inews sometimes prints the error: "Can't get list of newsgroups,
  563. No such file or directory.".  inews called CAlistactive() to get a
  564. local copy of the active file.  If it can't reach the active file you
  565. get this error.  Look at your PATH_TEMPACTIVE and see if it makes
  566. sense; i.e., if it is a valid /tmp directory.
  567.  
  568. Other problems are usually the result of not being able to find the
  569. "inn.conf" file (copy it to the client or make it available via NFS) or
  570. you are using Sun's brain-dead NIS/DNS stuff which doesn't do reverse
  571. name lookups well.  If inews tells you that it can't generate a
  572. Message-ID, this is because it can't figure out your domain.  Force it
  573. to know your domain by adding a "domain:" line in "inn.conf".
  574.  
  575. Once you get "inews -h -D" working, do the same test without the "-D" option
  576. and let it actually post the message.  If it can't post, it will tell
  577. you why.  If the answer isn't clear enough, "telnet nntphost 119", give
  578. the "mode reader" command, then the "post" command.  Enter lines of
  579. text like you would to "inews -h" and then type "." on a line by itself
  580. (and press RETURN).
  581.  
  582. If posting via "telnet nntphost 119" DOES work and posting via "inews -h"
  583. DOES NOT work, you know that (1) "inews" is compiled wrong, or more likely,
  584. (2) you aren't using INN's inews.  Either way, if this is happening
  585. you know you have narrowed your problems down to the inews program.
  586.  
  587. By the way, posting to misc.test is pretty useless considering that the
  588. entire world doesn't need to see your message.  Post to a local
  589. newsgroup or even a state-wide newsgroup like "nj.test" (assuming you
  590. are in New Jersey).  There are lots of people that reply to every test
  591. message they see, so expect to get tons of stupid email.  (though, if
  592. you don't get any email consider yourself lucky).  Also, there is no
  593. newsgroup called "news.test" so don't post there.  Many do, many fail.
  594. By the way, if you are one of those people that reply to every test
  595. message they see, get a real hobby.
  596.  
  597. Do *NOT* post your test message to a non-test newsgroup.  You will get
  598. many angry replies from all over the world.
  599.  
  600. Look at the posted message in the news spool (if you post a message to
  601. nj.test, "cd /var/spool/news/nj/test" and cat the highest numbered file
  602. you see).  If your site name is listed multiple times in the "Path:"
  603. header, put your server's name on the "pathhost:" line of
  604. "inn.conf" and recompile INN with "INEWS_PATH" set to
  605. "DONT".  (I don't know why Rich likes that as the default!)
  606.  
  607. If "inews -h" posts a message, smile because most of the battle is over.
  608.  
  609.  
  610. ------------------------------
  611.  
  612. Subject: "client" doesn't have the software needed to post.
  613.  
  614. If the client doesn't have "inews" at all, check the INN installation
  615. manual to find out how to compile it.  There is a special gimick
  616. included with INN to compile inews for the various other OS's and
  617. versions of Unix without having to compile the entire INN package.
  618.  
  619. Since nnpost, Pnews, postnews, and all other news posting software
  620. shouldn't do anything but ask for header information, let you add a
  621. body, and then pipe the whole thing to "inews -h", you can be pretty
  622. certain that if "inews -h" works, your news posting programs will
  623. work.  Think again!  Post from each of them and make sure they all get
  624. posted.  You might find that they access a copy of "inews" that was
  625. part of C news, mini-inews, or heavens knows what.
  626.  
  627. I highly recommend that people use "find" or "gnufind" to seek
  628. out and replace any old versions of "inews".
  629.  
  630. gnufind / /usr /usr/local /usr/lib -xdev -name inews\* -print
  631.  
  632. For every one that you find, do the following:
  633.  
  634. mv inews inews.cnews
  635. ln -s /usr/local/bin/inews inews
  636.  
  637. Now you only have to update /usr/local/bin/inews, rather than
  638. chasing may copies.
  639.  
  640. "nn" and "nnpost" create a file called "~/.nn/params" right before you
  641. post with tons of useful information.  While posting you can shell out
  642. of the editor and view the file.  The file is deleted after the message
  643. is posted.  I had to view this file while shelled out of my editor to
  644. find which "inews" was being used by "nnpost".
  645.  
  646. It's also a good idea to check your mail now and then while you are
  647. doing this.  Some newsreaders (like "nn" notify you of a posting
  648. problem via mail.
  649.  
  650. On non-INN systems, "inews" returns pretty quickly.  Actually they fork
  651. a process to do the actual posting in the background.  When those
  652. "inews" return, you don't know if the post was successful or not.
  653. These "inews"'s have a "-W" option which turns off this forking feature
  654. (i.e. Wait for the post to complete).
  655.  
  656. INN's "inews" never forks because the wait is never that long.  When
  657. "inews" returns you know if the post was successful or not.  INN's
  658. "inews" accepts the "-W" option for compatibility.
  659.  
  660. This may seem obvious, but when posting a test message, consider
  661. including the machine you are posting from and the program you are
  662. using.  Even though you may check to see if the message got posted
  663. after every test, this will help you later when you go back to see what
  664. you have done.
  665.  
  666.  
  667. ------------------------------
  668.  
  669. Subject: Debugging the "newsfeeds" file.
  670.  
  671. Outgoing news is controlled by the "newsfeeds" file.  The INN 1.2 man
  672. page for this file is a bit complex.  The man page in 1.3 (and beyond)
  673. gives better examples.  Here's a "cookbook" of examples that should
  674. cover most of your needs.  Debugging tips are also included.
  675.  
  676. Always remember that newsfeeds uses "wildmat" matches, not the
  677. semi-regular expressions that C news uses.  This means that if you want to get comp.foo and the subgroups under it (comp.foo.bar, comp.foo.baz, etc.) you
  678. have to use a statement like:
  679.  
  680. comp.foo,comp.foo.*
  681.  
  682. OR
  683.  
  684. comp.foo*
  685.  
  686. BUT NOT
  687.  
  688. comp.foo.*
  689.  
  690.  
  691. ------------------------------
  692.  
  693. Subject: The ME line in the newsfeeds file.
  694.  
  695. The "ME" entry is a bit confusing.  Be careful when you
  696. read the man page.
  697.  
  698. Here is the "ME" line that I use in my "newsfeeds" file.  I find
  699. it works quite well, but you might want to remove the distributions
  700. that you don't need (i.e. New Jersey).  Since my site has clients
  701. reading from all over the world I try to have every distribution I
  702. can find.  However, I hear of a new distribution almost daily so this
  703. list is always changing.
  704.  
  705. ME:!*/\
  706. news,gnu,comp,biz,alt,rec,misc,sci,soc,talk,inet,world,worldwide,all,\
  707. aus,su,uk,york,eunet,na,can,qc,tor,us,usa,mn,oh,chi,ca,ba,tx,pnw,il,ne,\
  708. ny,nyc,phl,bl,nj,warren::
  709.  
  710. If you want to blindly accept all distributions, try this:
  711.  
  712. ME:!*::
  713.  
  714.  
  715. ------------------------------
  716.  
  717. Subject: Cookbook example of an outgoing NNTP feed:
  718.  
  719. This example involves a machine named oddball.mentorg.com, that has an
  720. alias of oddball.sjc.mentorg.com, which should receive all posts (but
  721. control & junk should never be passed on) and not certain
  722. distributions.  Add the following line to newsfeeds:
  723.  
  724. oddball.mentorg.com/oddball.sjc.mentorg.com:*,!control*,!junk/!local,!warren:Tf,Wnm:
  725.  
  726. Have the user "news" run the following via cron:
  727.  
  728. 3,23,43 * * * *  /usr/lib/news/bin/nntpsend >/dev/null 2>&1
  729.  
  730. (this only needs to be added once.  nntpsend refers to a file
  731. called nntpsend.ctl to find out what to do).
  732.  
  733. Add the following to nntpsend.ctl:
  734.  
  735. oddball.mentorg.com:oddball.mentorg.com::
  736.  
  737. Done!
  738.  
  739.  
  740. ------------------------------
  741.  
  742. Subject: Cookbook example of an outgoing UUCP feed:
  743.  
  744. Example:  A site named "plts" that can not get the "clari" newsgroups
  745. or distribution "warren".
  746.  
  747. Add the following to the newsfeeds file:
  748.  
  749. plts:*,!clari.*,!junk*,!control*/!warren:Tf,Wnb:
  750.  
  751. Add the following to the cron tab (as user "news"):
  752.  
  753. 0 0-5,16-23 * * 1-5       /usr/lib/news/bin/sendbatch -c plts >/dev/null 2>&1
  754.  
  755.  
  756. ------------------------------
  757.  
  758. Subject: Testing an outgoing feed (your "newsfeeds" configuration).
  759.  
  760. Here is a decent game-plan for testing your newsfeeds configuration:
  761.  
  762. Suppose your site is in New Jersey and you have a distribution called
  763. "mentorg" which should be used by people that want to make sure that
  764. their post will not leave their company (Mentor Graphics).  You should
  765. do a test post to "nj.test" with no "Distribution:" header, and with
  766. "Distribution: nj" and "Distribution: mentorg".  After posting, do a
  767. "ctlinnd flush ''" and make sure that the /var/spool/news/out.going
  768. files for all your sites did/didn't queue up those three messages as
  769. appropriate.
  770.  
  771. IMPORTANT:  Remember to do a "ctlinnd reload newsfeeds x" command every
  772. time you update your "newsfeeds" file!
  773.  
  774. Finally, for checking out changes to newsfeeds, I've found "ctlinnd
  775. checkfile" handy.
  776.  
  777.  
  778. ------------------------------
  779.  
  780. Subject: Cookbook example setting up NOV ("overchan").
  781.  
  782. Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel) (with
  783. many modifications from Tom Limoncelli) writes:
  784.  
  785. Step 1:  Upgrade to INN 1.4 or higher:  Most of the bugs in 1.3 were
  786. related with overchan.  In fact, the reason why many people used 1.3
  787. without any problems was due to the fact that they were not using
  788. overchan (and didn't hit on some of the bugs that appeared for SVR4
  789. users, all of which were fixed in 1.4)
  790.  
  791. Step 2:  Make sure INN is working.  Get everything else working before
  792. you try to get overchan to work.  You'll only confuse yourself.
  793.  
  794. Step 3:  Ponder if you have enough disk space.  NOV uses up an
  795. additional 10%-20% of your news spool.  This is a good 100 Mb if you
  796. have a full feed.  The real space savings come when you delete your
  797. separate databases for trn, nn, and tin and use one unified database.
  798. All serious newsreaders will have NOV support soon.
  799.  
  800. Step 4:  Edit overview.fmt (it's in the $INN/site directory, or you can
  801. edit it where it was installed, in /usr/lib/news ) to include
  802. "Xref:full" as the last line.  (i.e. uncomment out the last line).
  803.  
  804. Step 5:  Add this entry to your "newsfeeds" file.  overchan gets it's data
  805. from a special feed.
  806.  
  807. # This feeds header data to NOV:
  808. OVERVIEW!:*:Tc,WO:/usr/local/news/bin/overchan
  809.  
  810. Read the "newsfeeds" man to make sure you understand what you've
  811. just done.
  812.  
  813. Step 6:  (optional) To create the original database:
  814.  
  815.     (run this as "news")
  816.     % /usr/local/news/bin/expireover -a -s
  817.  
  818. If you skip this step, access will be slow for articles that came
  819. in before you started "overchan".  This is not a problem.  You
  820. will get a lot of warnings in your "news.daily" output until
  821. you have received at least one new article in each newsgroup.
  822.  
  823. [ Note:  "a lot of warnings" means one for every newsgroup.  This can
  824. make your news.daily report >6000 lines.  The lines will all look
  825. like:
  826. overchan cant open clari/local/washington/.overview, No such file or directory
  827. overchan cant open clari/local/sfbay/.overview, No such file or directory
  828. overchan cant open uc/news/.overview, No such file or directory
  829. ]
  830.  
  831. Step 7:  Change the invocation of news.daily:
  832.  
  833. In the crontab file for "news", edit the "news.daily" line to be
  834. something like:
  835.  
  836.    news.daily nonn delayrm expireover
  837.  
  838. (the expireover is required if you use overchan)
  839.  
  840. Step 8:  Inform your users that you now support "NOV, the News OverView
  841. database" and suggest that people switch to newsreaders that use
  842. newsreaders that are compliant with the Overview format.
  843.  
  844. Step 9:  You are done.
  845.  
  846. Step 10:  In a few weeks, drop support for mthreads, nnmaster, etc.
  847. (assuming you've upgraded to replacements that use Overview)
  848.  
  849.  
  850. ======================================================================
  851.  
  852.                  STARTUP PROBLEMS AND SYSLOG MESSAGES
  853.  
  854. ======================================================================
  855.  
  856.  
  857. ------------------------------
  858.  
  859. Subject: syslog message: ME internal no to group
  860.  
  861. Nelson Minar <nelson@reed.edu> discovered the hard way that:
  862.  
  863. If you set MERGE_TO_GROUPS to "DO",
  864.  
  865. You have to have a "to" group listed in your "active" file or you will
  866. get the above syslog message and innd will not start.
  867.  
  868.  
  869. ------------------------------
  870.  
  871. Subject: syslog message: ME cant sendto CCreader bytes 4 No such file or directory
  872.  
  873. (Rich Salz replies:) It usually means that some ctlinnd command timed
  874. out and gave up before innd could get around to replying.  Always a
  875. problem with datagrams.  :-)  Usually not a problem in real life
  876. however.  In INN1.3, the timeout stuff is handled better so most of
  877. these should go away.
  878.  
  879.  
  880. ------------------------------
  881.  
  882. Subject: syslog message: ME internal no control and/or junk group
  883.  
  884. You must have a newsgroup named "control" and a newsgroup named
  885. "junk" for innd to start.
  886.  
  887.  
  888. ------------------------------
  889.  
  890. Subject: syslog message: ME bad_newsfeeds no feeding sites
  891.  
  892. (Rich Salz replies:) The syslog message is telling you that you are not
  893. feeding news to any sites.  You have to have at least one feed.  (You
  894. may consider this to be a bug, it's just that I'm too lazy to make
  895. everything work right if you don't have any newsfeeds.)
  896.  
  897. Until you go into production and start feeding sites, add a line like this:
  898.         dummy-feed:!*::
  899.  
  900.  
  901. ------------------------------
  902.  
  903. Subject: Why do all these "readclose" messages show up in my syslog?
  904.  
  905. Chris Schmidt <cs@germany.eu.net> says:
  906.  
  907. The "readclose" message indicates that a remote connection to your
  908. server was not correctly terminated with the server-command "quit".
  909. This can have two reasons.  First the line your feed uses to connect to
  910. you might be instable so that the connection drops every now and then.
  911. Solution:  either ignore theses messages or find out why the line is
  912. unstable.  The second reason for these messages could be a
  913. missconfigured client-program at your feed.  This means the program
  914. (e.g nntplink) does close the connection without sending the "quit"
  915. first.  If you configure a lower number for the exit-timeout (-e) than
  916. the close-timeout (-C) in nntplink then exactly this will happen.
  917. Solution:  ask your feed to fix its nntplink-setup.  Let me repeat
  918. that:  If you are using "nntplink" your -e value must be higher than
  919. your -C value.
  920.  
  921.  
  922. ======================================================================
  923.  
  924.                              MISC QUESTIONS
  925.  
  926. ======================================================================
  927.  
  928.  
  929. ------------------------------
  930.  
  931. Subject: Can I edit my configuration files where they are, or do
  932. I have to edit them in $INN/site ?
  933.  
  934. Technically, you should edit those files in the $INN/site directory, but
  935. then typing "make" all the time becomes a grind.  I found that I was
  936. constantly forgetting to type "make" and then I couldn't figure out why
  937. my changes weren't doing anything.  The alternative is to edit things
  938. in place and let the install procedure complain.  It will error out on
  939. the file, and you can copy that file to $INN/site then "make" again.
  940.  
  941.  
  942. ------------------------------
  943.  
  944. Subject: syslog: ME cant nonblock 15 Operation not supported.
  945.  
  946. I get the following "syslog" message in /var/adm/messages:
  947.  
  948. Dec  2 20:40:04 venus innd: ME cant nonblock 15 Operation not supported
  949.  
  950. Answer: (from paulr@umbc4.umbc.edu (Paul Riddle))
  951.  
  952. It turns out that this is happening because /usr/spool/news on the
  953. machine running innd is an NFS-mounted filesystem, and innd is trying
  954. to do an FIONBIO on my feed file, which is under /usr/spool/news/out.going.
  955.  
  956. (tal@warren.mentorg.com adds:)
  957. All news transports (INN, C news, B news) want the spool partition to
  958. be local.  Newsreader can read from an NFS mounted partition without
  959. any problems but innd should only see local partitions.  NFS has a
  960. blatant disregard for many of the file semantics that are needed for a
  961. good news implementation.  If you don't agree, please feel free to
  962. prove the authors of B news, C news, and INN wrong.  Include source
  963. code. :-)
  964.  
  965. Systems without unix-domain sockets sometimes see this error.
  966.  
  967.  
  968. ------------------------------
  969.  
  970. Subject: Suddenly my active and history files are owned by root!
  971.  
  972. rc.news runs from root.  After that, everything else should run as
  973. news.  More specifically, it sounds like you've run news.daily as root
  974. by mistake.  Make sure all your cron jobs run as news and you'll be
  975. fine.
  976.  
  977. If you have an old "cron" system, you might consider replacing yours
  978. with one of the many public domain replacements.  If you can't create
  979. a different "crontab" for each user, the idiom is something like:
  980.  
  981. 0 * * * * * su news -c '/do/this/as/news'
  982.  
  983.  
  984. ------------------------------
  985.  
  986. Subject: What can I do if I can't purchase the O'Reiley And Associates book
  987. on Managing Usenet?
  988.  
  989. Hold a fundraiser?
  990.  
  991. Seriously, this document will help you some.  HOWEVER many people have
  992. thought that the install.ms doc was incomplete but then re-read the
  993. "First Time Installation" portion and were amazed how good it was.
  994. Personally, I've been a newsadmin for too long to be able to know if it
  995. would be good for beginners.
  996.  
  997.  
  998. ------------------------------
  999.  
  1000. Subject: Getting an active file.
  1001.  
  1002. >     In appendix IV, the reader is told that "the easiest way to
  1003. > [find out which groups to create] is usually to ask [your newsfeed
  1004. > site] for a copy of their active file, and for you to add the entries
  1005. > of the groups that you're interested in." It would have been nice to
  1006. > get instructions on where this active file lives, and how to create
  1007. > the new groups, without digging through manpages (I still haven't
  1008. > found out what the proper path and incantations are. How are these
  1009. > commands issued? As shell commands? As news articles?).
  1010.  
  1011. If your neighbor doesn't know where his/her active file is, you should
  1012. look for another neighbor.  "man active" will tell you on the first
  1013. line.  Different sites put it in different places.  The man page should
  1014. tell you where it is.
  1015.  
  1016. Here is how you zap someone else's active file to make it ready
  1017. for re-use:
  1018.  
  1019. sed <active.old >active.new \
  1020.        -e 's/^\([^ ]*\) [0-9]* [0-9]* \([^ ]*\)$/\1 0000000000 000000001 \2/'
  1021.  
  1022.  
  1023. ------------------------------
  1024.  
  1025. Subject: How do I use nntplink with INN?
  1026.  
  1027. First of all, I don't personally recommend using this program.  I feel
  1028. that it is a gimick.  However, if you decide to join the INN Instant
  1029. Propagation Party (INN-IPP), I suggest that you first run the feed using
  1030. traditional methods for a month so that you make sure you are used to
  1031. INN and make sure that the feed is properly functioning.  Once you're
  1032. ready, here's a cookbook example of an newsfeeds entry using nntplink.
  1033.  
  1034. netcomsv.netcom.com\
  1035.     :*,!junk/!ParcPlace\
  1036.     :Tc,Wmf,S1024:/usr/local/news/bin/nntplink -i stdin netcomsv.netcom.com
  1037.  
  1038. Others have reported that Tc,Wnm works.  Since I don't use this program
  1039. I can't validate which is correct.  INN 1.2 users should have an
  1040. explicit S value (i.e. S1024 or S16384).  Without it innd 1.2 can choke
  1041. and lose data if the receiver is jammed. (fixed in INN 1.3).
  1042.  
  1043. Ian Phillipps <ian@unipalm.co.uk> notes some criteria for using
  1044. nntplink rather than nnptsend:
  1045.  
  1046. > (1) If you have more than one backbone feed, you can save a lot of
  1047. > bandwidth, without risk, if you use nntplink (less duplication of
  1048. > articles over nearly-parallel paths).
  1049.  
  1050. > (2) More important, if you have a large number of feeds, nntplink
  1051. > permits them to be fed simultaneously with the same articles. No big
  1052. > deal, until you think of the what's going on in the pagedaemon and the
  1053. > disk cache.
  1054.  
  1055. > A "ps uaxr" rarely catches nntplink in the act ("D"), despite my having
  1056. > 17 of them last time I counted. Our biggest outgoing newsfeed delivered
  1057. > 16398 articles yesterday, using a total of 380 seconds CPU on a Sun
  1058. > IPC, and no disk time :-)
  1059.  
  1060.  
  1061. ------------------------------
  1062.  
  1063. Subject: How do I use newsgate with INN?
  1064.  
  1065. anselmo@nic.near.net (Ed Anselmo) reports:
  1066.  
  1067. > Can someone who's running INN and the news2mail program in the
  1068. > newsgate package send me a sample of the entry in the newsfeeds
  1069. > file for a typical bidirectional gateway? Thanks!
  1070.  
  1071. This assumes you configured "mail2news" to put a distinctive
  1072. host-gateway name, like "news-mail-gateway" in your Path: headers.
  1073.  
  1074. In /usr/lib/news/newsfeeds:
  1075. ====================================
  1076. ##
  1077. ##  NEWS/MAIL GATEWAY
  1078. ##
  1079.  
  1080. tech-gateway/news-mail-gateway\
  1081.         :ne.nearnet.tech\
  1082.         :Tp:/usr/lib/newsbin/news2mail \
  1083.         nearnet-tech nearnet-ops nearnet-tech-request nic.near.net %s
  1084. ====================================
  1085.  
  1086. On the mailing list side, one of the recipients is:
  1087.  
  1088. post-nearnet-tech: "|/usr/lib/newsbin/mail2news -n ne.nearnet.tech -o 'NEARnet News/Ma
  1089. il Gateway' -d ne"
  1090.  
  1091.  
  1092. ------------------------------
  1093.  
  1094. Subject: Other cron jobs.
  1095.  
  1096. Once a night you should run the "news.daily" script which will
  1097. expire old articles, run the daily reports, etc.  It should run
  1098. as "news" and look something like this:
  1099.  
  1100. 40 23 * * *               /usr/lib/news/bin/news.daily delayrm
  1101.  
  1102. If you get news feeds via UUCP, you might want to add this cron
  1103. job (also as "news") which checks to see if any batches arrived
  1104. while innd was down and processes them.
  1105.  
  1106. 20 * * * *                /bin/rnews -U
  1107.  
  1108.  
  1109. ------------------------------
  1110.  
  1111. Subject: After a crash.
  1112.  
  1113. "What do I do after a system crash?"
  1114.  
  1115. INN handles crashes pretty well.  If there are any problems they
  1116. get cleaned up by the nightly expire.  About once a month you
  1117. might want to run "makehistory -bu" to look for "lost" articles.
  1118. Check the man page for "makehistory" for more information.
  1119.  
  1120.  
  1121. ------------------------------
  1122.  
  1123. Subject: Debugging someone that is feeding you.
  1124.  
  1125. David Myers <dem@meaddata.com> suggests that if a neighbor complains
  1126. that their feed to you doesn't work: (1) make sure they've read the man
  1127. pages, and (2) have them send a copy of their newsfeeds file.
  1128.  
  1129.  
  1130. ------------------------------
  1131.  
  1132. Subject: Feeds suddenly can't connect anymore!
  1133.  
  1134. Q:  How come feeds tell me they can't connect to me any more?
  1135.  
  1136. A:  When innd starts up it reads the hosts.nntp file and looks up the
  1137. IP addresses for all the entries mentioned there.  The problem is that
  1138. this data is dynamic (sometimes people change IP addresses), and innd
  1139. never goes back to check.  If your system stays up for days and one of
  1140. your feeds changes their IP address, innd will reject them.  Rich plans
  1141. to handle this in INN1.5, but for now you might find it useful to do a
  1142. "ctlinnd reload hosts.nntp" out of cron every day or so or when you
  1143. notice there's a problem.
  1144.  
  1145.  
  1146. ------------------------------
  1147.  
  1148. Subject: How does the "ME" line interact with the other lines?
  1149.  
  1150. > I'm still a little confused about the ME line's second field.
  1151.  
  1152. The man page as of INN 1.3 is much more clear on this.  Basically, the
  1153. second field of the "ME" line specifies the default for the rest of the
  1154. feeds.  Otherwise, it isn't used.  The "active" file declares which
  1155. newsgroups you accept and don't accept.
  1156.  
  1157. Here are some examples:
  1158.  
  1159. ME:!*:::
  1160. foo:!junk:...        --send no newsgroups
  1161.  
  1162. ME:*:::
  1163. foo:!junk:...        --send all newsgroups except junk
  1164.  
  1165. ME:!*:::
  1166. foo:*,!junk:...      --send all newsgroups except junk
  1167.  
  1168. By the way, generally you do not want to send "junk" or "control" to
  1169. your neighbors.
  1170.  
  1171.  
  1172. ------------------------------
  1173.  
  1174. Subject: Why doesn't nntpget work?
  1175.  
  1176. The nntpget in INN 1.2 doesn't work.  Period.  Upgrade to the latest version
  1177. of INN.
  1178.  
  1179.  
  1180. ------------------------------
  1181.  
  1182. Subject: More about the "to.*" groups
  1183.  
  1184. (Thanks to jmalcolm@sura.net (Joseph Malcolm) for supplying
  1185. these answers.)
  1186.  
  1187. >1) Why did my local INN act on the sendsys posted to to.neighbor?
  1188.  
  1189. to.* groups aren't magic to INN. Your system received the message,
  1190. it acted on it.
  1191.  
  1192. >2) Why did my neighbor send the cmsg to all of his neighbors?
  1193.  
  1194. See 3.
  1195.  
  1196. >3) Is is related to having the "control" group in our newsgroups patterns?
  1197.  
  1198. Yes.
  1199.  
  1200. >   The INN docs say you probably don't want to do this, but they don't say
  1201. >   why.
  1202.  
  1203. Actually, they do. This is from innd(8):
  1204.  
  1205.      Sites may explicitly have the ``control'' newsgroup in their
  1206.      subscription  list,  although  it is usually best to exclude
  1207.      it.  If a control message is posted to a  group  whose  name
  1208.      ends  with  the  four characters ``.ctl'' then the suffix is
  1209.      stripped off and what is left is used  as  the  group  name.
  1210.      For  example,  a cancel message posted to ``news.admin.ctl''
  1211.      will be sent to all sites that subscribe to  ``control''  or
  1212.      ``news.admin.''
  1213.  
  1214. There is also a pointer to this in newsfeeds(5).
  1215.  
  1216. >   But I still need it in my active file, right?
  1217.  
  1218. Yes.
  1219.  
  1220.  
  1221. ------------------------------
  1222.  
  1223. Subject: I'm getting groups sent to me that I don't want.
  1224.  
  1225. Tell the system administrator(s) of the machine(s) that feed news to
  1226. you to stop sending those groups.  There is no other way to do it.  (In
  1227. B or C News, the groups would end up in junk; at least with INN they
  1228. are not taking up space.  You should compile with WANT_JUNK set to
  1229. DONT).
  1230.  
  1231. If the people that feed you use B news or C news, remember that they
  1232. don't use a "newsfeeds" file.  They use a file called "sys" which has a
  1233. completely different format method for listing newsgroups.
  1234.  
  1235.  
  1236. ------------------------------
  1237.  
  1238. Subject: When my feeder connects, I get articles but they don't take what's waiting for them.
  1239.  
  1240. I hate to say this, but this really shows that you haven't RTFMed very
  1241. much.
  1242.  
  1243. News is not bidirectional (it's like SMTP, not UUCP).  If you want to
  1244. send things out you will have to make sure that you run send-nntp or
  1245. nntpsend from cron.  nntpsend is easier and elsewhere in this document
  1246. there are cookbook examples of what to add every time you set up a new
  1247. feed.
  1248.  
  1249.  
  1250. ------------------------------
  1251.  
  1252. Subject: Directories are being created with wrong permissions.
  1253.  
  1254. > Question:
  1255. >When I received news for /var/spool/news/foo/bar for the first
  1256. >time, the directories got created:
  1257. >
  1258. ># ls -lgR foo
  1259. >total 1
  1260. >d-wx-w-rwx  2 news     news          512 Feb  9 00:03 bar/
  1261. >
  1262. >What did I do wrong?
  1263. >
  1264. >##  Mode that directories are created under.
  1265. >#### =()<GROUPDIR_MODE          @<GROUPDIR_MODE>@>()=
  1266. >GROUPDIR_MODE           2775
  1267.  
  1268.   Answer:
  1269. You forgot a zero in front of this number, for the C compiler to interpret it
  1270. as octal instead of decimal.
  1271.  
  1272.  
  1273. ------------------------------
  1274.  
  1275. Subject: Can I split my news spool across partitions?
  1276.  
  1277. Rich $alz replies:
  1278.  
  1279. Yes, it works fine.  Suppose you have rec on one partition and alt on
  1280. another.  If an article is posted to rec.photo and
  1281. alt.graphics.pixutils then INN will write the article to rec/photo/xxx
  1282. and make alt/graphics/pixutils/yyy be a symlink to it.  In order for
  1283. this to work, you must make sure that you have built INN with
  1284. HAVE_SYMLINK set to DO.
  1285.  
  1286. You must also take special care when you expire articles, and make sure
  1287. that expire is given the -l flag (see doc/expire.8).  Suppose that
  1288. rec.photo expires more quickly then the alt group.  If this happens,
  1289. then you will be left with a dangling symlink.  The -l flag prevents
  1290. this from happening.
  1291.  
  1292. There is one other caveat:  makehistory does not handle symlinks very
  1293. well.  If you need to rebuild your history database from scratch it is
  1294. probably best to run a find that first removes all symlinks.  See
  1295. doc/news-recovery.8.
  1296.  
  1297.  
  1298. - * The End * -
  1299. -- 
  1300. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
  1301. "People are not pigs, they'll eat anything!"   -ambiguous Slavic saying
  1302. Disclaimer:  I do not speak for Mentor Graphics.
  1303.              I can't even do the accent.
  1304.